package Test;

public class Father {
	
	private String name;
	
	private int age;
	
	public void say(){
		System.out.println("说话");
	}
	
	int num = 10;
	
	public Father(){
		
		System.out.println("无参构造");
	}
	
	public Father(String name,int age){
		this.name = name;
		this.age = age;
	}
	
	public void setName(String name){
		this.name = name;
	}
	
	public String getName(){
		return name;
	}
	
	public void setAge(int age){
		this.age = age;
	}
	
	public int getAge(){
		return age;
	}

}
